onSwitchFocus

fun onSwitchFocus(consumer: Consumer<Element?>): PopupWidget.Builder

Defines a consumer that will run when focus is switched to an element in the popup.

Return

Builder - this builder for further use

Author

fzzyhmstrs

Since

0.6.0

Parameters

consumer

Consumer<Element> - Consumes the newly focused element.